package com.wr.service.impl;

import com.wr.mapper.PlateMapper;
import com.wr.model.Plate;
import com.wr.service.PlateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author weirong
 * @Title:
 * @Description:
 * @date 2018/6/1118:00
 */
@Service
public class PlateServiceImpl implements PlateService {

    @Autowired
    private PlateMapper plateMapper;

    public int deleteByPrimaryKey(Integer id) {
        return plateMapper.deleteByPrimaryKey(id);
    }

    public int insertSelective(Plate record) {
        return plateMapper.insertSelective(record);
    }

    public Plate selectByPrimaryKey(Integer id) {
        return plateMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Plate record) {
        return plateMapper.updateByPrimaryKeySelective(record);
    }

    public List<Plate> list(Plate plate) {
        return plateMapper.list(plate);
    }
}
